import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        searchVal: '',
        is_gotop: false,
        sliderScroll: false,
    },
    getters: {},
    mutations: {
        // 修改搜索信息
        changeSsearchVal(state, data) {
            state.searchVal = data;
        },
        changeIs_gotop(state, data) {
            state.is_gotop = data;
        },
        changeSliderScroll(state, data) {
            state.sliderScroll = data;
        },
    },
    actions: {},
    modules: {},
});
